import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/syMailReport',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/syMailReport/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/syMailReport',
    method: 'put',
    data
  })
}

// 获取检测师列表
export function getTesterList() {
    return request({
      url: 'api/syUserTester/getTesterList',
      method: 'get'
    })
}

export function getMailInfo(id) {
  return request({
    url: 'api/syMailReport/info/' + id,
    method: 'get'
  })
}

export function batchMsgReading(ids) {
  return request({
    url: 'api/syMailReport/batchMsgReading',
    method: 'post',
    data: ids
  })
}

export default { add, edit, del, getTesterList, getMailInfo, batchMsgReading }
